#!/bin/sh

conf=/etc/miniupnpd/miniupnpd.conf
# generate uuid
if grep -q 'uuid=00000000-0000-0000-0000-000000000000' "$conf"; then
	echo "Generating uuid for $conf"
	sed -i -e "s/uuid=.*/uuid=$(uuidgen)/" "$conf"
fi
